﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace ExportSystem.Master
{
    public class ImportForm : Form
    {
        private Label label1;
        private TextBox textBoxImportFile;
        private Button buttonImportOk;
        private Button buttonBrowseFile;
        private OpenFileDialog openFileDialog;

        private TableLayoutPanel tableLayoutPanel1;

        public ImportForm()
        {
            InitializeComponent();
        }
        private void InitializeComponent()
        {
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.label1 = new System.Windows.Forms.Label();
            this.textBoxImportFile = new System.Windows.Forms.TextBox();
            this.buttonImportOk = new System.Windows.Forms.Button();
            this.buttonBrowseFile = new System.Windows.Forms.Button();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.tableLayoutPanel1.SuspendLayout();
            this.SuspendLayout();
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.ColumnCount = 3;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel1.Controls.Add(this.label1, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.textBoxImportFile, 1, 1);
            this.tableLayoutPanel1.Controls.Add(this.buttonImportOk, 1, 2);
            this.tableLayoutPanel1.Controls.Add(this.buttonBrowseFile, 2, 1);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 3;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28.57143F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 71.42857F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(301, 99);
            this.tableLayoutPanel1.TabIndex = 0;
            // 
            // label1
            // 
            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(3, 28);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(64, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Browse File:";
            // 
            // textBoxImportFile
            // 
            this.textBoxImportFile.Dock = System.Windows.Forms.DockStyle.Fill;
            this.textBoxImportFile.Location = new System.Drawing.Point(73, 23);
            this.textBoxImportFile.Name = "textBoxImportFile";
            this.textBoxImportFile.Size = new System.Drawing.Size(192, 20);
            this.textBoxImportFile.TabIndex = 1;
            // 
            // buttonImportOk
            // 
            this.buttonImportOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.tableLayoutPanel1.SetColumnSpan(this.buttonImportOk, 2);
            this.buttonImportOk.Location = new System.Drawing.Point(223, 52);
            this.buttonImportOk.Name = "buttonImportOk";
            this.buttonImportOk.Size = new System.Drawing.Size(75, 23);
            this.buttonImportOk.TabIndex = 2;
            this.buttonImportOk.Text = "OK";
            this.buttonImportOk.UseVisualStyleBackColor = true;
            this.buttonImportOk.Click += new System.EventHandler(this.buttonImportOk_Click);
            // 
            // buttonBrowseFile
            // 
            this.buttonBrowseFile.Location = new System.Drawing.Point(271, 23);
            this.buttonBrowseFile.Name = "buttonBrowseFile";
            this.buttonBrowseFile.Size = new System.Drawing.Size(27, 23);
            this.buttonBrowseFile.TabIndex = 3;
            this.buttonBrowseFile.Text = "...";
            this.buttonBrowseFile.UseVisualStyleBackColor = true;
            this.buttonBrowseFile.Click += new System.EventHandler(this.buttonBrowseFile_Click);
            // 
            // openFileDialog
            // 
            this.openFileDialog.FileName = "openFileDialog";
            // 
            // ImportForm
            // 
            this.ClientSize = new System.Drawing.Size(301, 99);
            this.Controls.Add(this.tableLayoutPanel1);
            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(222)));
            this.Name = "ImportForm";
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel1.PerformLayout();
            this.ResumeLayout(false);

        }

        private void buttonBrowseFile_Click(object sender, EventArgs e)
        {
           
            this.openFileDialog.ShowDialog();
            textBoxImportFile.Text = openFileDialog.FileName;
        }

        private void buttonImportOk_Click(object sender, EventArgs e)
        {

        }
    }
}
